x86/boot: Drop explicit %fs uses
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 9 Jan 2020 14:06:08 +0000 (14:06 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 22 Jan 2020 19:03:18 +0000 (19:03 +0000)
commit9f27372677a68206d511de88ede22c53369a4ff7
tree7998ba4e06593fd742d438d6a18ecba7f2783cf2
parentcbabbc9f56599b6e0fcf6d9c059066abac941bd4
x86/boot: Drop explicit %fs uses

The trampoline relocation code uses %fs for accessing Xen, and this comes with
an arbitrary 16M limitation.  We could adjust the limit, but the boot code is
a confusing mix of %ds/%esi-based and %fs-based accesses, and the use of %fs
is longer to encode, and incurs an address generation overhead.

Rewrite the logic to use %ds, for better consistency with the surrounding
code, and a marginal performance improvement.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/boot/head.S